﻿@model Nullable<int>
@{
    int rating = Model.GetValueOrDefault(3);
}
<ul class="rating">
@for (int i = 1; i < 5; i++)
{
    if (i < rating)
    { 
    <li class="star" title="@i"></li>
    }
    else
    { 
    <li class="start-disabled" title="@i"></li>   
    }
}
</ul>
